<!--<?php
print<<<EF
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
</head>

<base target="_self" />
<body style="text-align:left">

<div id="toppath">排除IP管理</div>

<div style="padding:5px;"><a href="removeip.inc.php?action=add">添加排除IP</a></div>

<!-- 
EF;
if($action=='show'){
print<<<EF
-->
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" width="100%">
<tr><th  align="center"  width="60%">IP地址</th><th  align="center"  width="20%">修改</th><th align="center"  width="20%">删除</th></tr>
<!--
EF;
for($i=0;$i<count($arr)-1;$i++)
{
print<<<EF
-->
  <tr>
    <td align="center"  width="60%" ><a href="removeip.inc.php?action=edit&ip={$arr[$i]}">{$arr[$i]}</a></td>
	<td align="center" width="20%"><a href="removeip.inc.php?action=edit&ip={$arr[$i]}">修改</a></td>
    <td align="center"  width="20%"><a href="removeip.inc.php?action=delete&ip={$arr[$i]}">删除</a></td>
  </tr>
<!--
EF;
}
print<<<EF
-->
</table>
<!--
EF;
}
if($action=='add'){
print<<<EF
-->
<form action="removeip.inc.php?action=oadd" method="post">
<table style="float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" width="70%" id="add" >
<tr><th width="30%" align="center">参数名称</th><th width="50%">值</th></tr>

	
	<tr><td width="30%" align="right" style="padding-right=50px;">IP:</td><td width="50%"><input type="text" name="ip"></td></tr>
	

</table>
 <div id="pagediv" align="center">
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" type="submit"  name="msubmit"  value="提 交" />
   　 
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" name="reset" type="reset" value="重置" />
</div>
</form>
<!--
EF;
}
if($action=='edit'){
print<<<EF
-->
<form action="removeip.inc.php?action=oedit" method="post">
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" width="70%" id="add"  >
<tr><th width="30%" align="center">参数名称</th><th width="50%">值</th></tr>
	<input type="hidden" name="oldip" value=$va>	
	<tr>
	<td width="30%" align="right" style="padding-right=50px;">IP</td>
	<td width="50%"><input type="text" name="ip" value="$va"></td>
	</tr>
</table>
 <div id="pagediv" align="center">
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" type="submit"  name="msubmit"  value="提 交" />  　 
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" name="reset" type="reset" value="重置" />
</div>
</form>
<!--
EF;
}
print<<<EF
-->

</body>
</html>
<!--
EF;
?>
-->
